const deletenode=function(node){
    node.val=node.next.val;
    node.next=node.next.next;
}
node=[1,2,3]